package com.wy.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: wysk.
 * @Date: 2021/1/25
 * @Description:  行业信息
 **/
@Data
@Entity
public class DicIndustry implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(columnDefinition = "int(11) comment'主键自增'")
    private Integer id;

    /**
     * 行业的名称
     */
    @Column(columnDefinition = "varchar(40) comment'行业的名称'")
    private String name;

}
